-- GENERATED SPELL FOR [Ethereum Slayer] --


function spell0_20896(pUnit, Event) --@Evasion,Self--
pUnit:FullCastSpellOnTarget(15087,pUnit)
pUnit:RegisterEvent('Sorts_20896', 15342, 1)
end

function spell1_20896(pUnit, Event) --@Impairing Poison,n/a--
pUnit:FullCastSpellOnTarget(36839,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20896', 10297, 1)
end

function spell2_20896(pUnit, Event) --@Slaying Strike,n/a--
pUnit:FullCastSpellOnTarget(36838,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20896', 599, 1)
end

function spell3_20896(pUnit, Event) --@Slaying Strike,n/a--
pUnit:FullCastSpellOnTarget(38894,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20896', 657, 1)
end

function Sorts_20896(pUnit, Event)
local choix_sorts_20896 = math.random(0, 3)
if choix_sorts_20896 == 0 then
pUnit:RegisterEvent('spell0_20896', 1, 1)
end
if choix_sorts_20896 == 1 then
pUnit:RegisterEvent('spell1_20896', 1, 1)
end
if choix_sorts_20896 == 2 then
pUnit:RegisterEvent('spell2_20896', 1, 1)
end
if choix_sorts_20896 == 3 then
pUnit:RegisterEvent('spell3_20896', 1, 1)
end
end

function mob20896_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20896', math.random(1500, 3000), 1)
end

function mob20896_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20896_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20896_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20896, 1, 'mob20896_Action')
RegisterUnitEvent(20896, 2, 'mob20896_Leave')
RegisterUnitEvent(20896, 3, 'mob20896_Kill')
RegisterUnitEvent(20896, 4, 'mob20896_Die')
